#!/bin/bash
File1=$0.out1
File2=$0.out2
echo -n $0 will generate two files $File1 and $File2
exec > $File1
echo First part of $0
exec > $File2
echo Second part of $0
exec > /dev/tty
echo . . . $0 done\!
